kbuild: Use -nostdinc in compile tests
authorBen Hutchings <ben@decadent.org.uk>
Sat, 19 Oct 2013 18:43:35 +0000 (19:43 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 27 Feb 2017 15:58:07 +0000 (15:58 +0000)
commitcac4f730661eed7de7b2b8ab1d75f3f39a27a81c
tree702e501ba15b1c0796c0d37dcf4644549ae9d2a9
parent79b4e41dde96e465075be0012b8cb587b2e0522a
kbuild: Use -nostdinc in compile tests

Debian's gcc 4.8 pre-includes <stdc-predef.h> by default, which in
turn includes <bits/predefs.h>.  This fails when building a 64-bit
kernel and only 32-bit C library headers installed.

The -nostdinc option disables this, though it isn't explicitly
documented.  This option is already used when actually building
the kernel.

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name kbuild-use-nostdinc-in-compile-tests.patch
Makefile
scripts/Kbuild.include